--===========================================================================--
--              DECLARING THE LOCAL VARIABLES (FOR EASE OF CODING)
--===========================================================================--
local Recipe = GLOBAL.Recipe
local Ingredient = GLOBAL.Ingredient
local RECIPETABS = GLOBAL.RECIPETABS
local STRINGS = GLOBAL.STRINGS

--===========================================================================--
--                         STRINGS FOR THE RECIPE TAB
--===========================================================================--
STRINGS.NAMES.HEALTHPOTION = "Potion of Health"
STRINGS.RECIPE_DESC.HEALTHPOTION = "Drink this to restore some health!"

--===========================================================================--
--                       ITEM DESCRIPTIONS DEFINED HERE
--===========================================================================--
-- Health Potion description for Wilson (and any other default character)
STRINGS.CHARACTERS.GENERIC.DESCRIBE.HEALTHPOTION = "I made this with science!"
-- Health Potion description for Willow
STRINGS.CHARACTERS.WILLOW.DESCRIBE.HEALTHPOTION = "I wonder if it burns?"
-- Health potion description for Wendy
STRINGS.CHARACTERS.WENDY.DESCRIBE.HEALTHPOTION = "This will heal my wounds..."
-- Health potion description for Wolfgang
STRINGS.CHARACTERS.WOLFGANG.DESCRIBE.HEALTHPOTION = "Tiny potion look disgusting."
-- Health potion description for Wickerbottom
STRINGS.CHARACTERS.WICKERBOTTOM.DESCRIBE.HEALTHPOTION = "A vial of restorative elixir."
-- Health potion description for WX-78
STRINGS.CHARACTERS.WX78.DESCRIBE.HEALTHPOTION = "THIS SHALL REPAIR MY CIRCUITS!"

--===========================================================================--
--                      BEGIN WRAITHOF'S PREFAB LOADER
--===========================================================================--
-- this is where alterations to the recipe can be made (for those who wish to
-- alter the mod to better suit their needs)

--Tell simulator to load custom prefab definition for resource allocation
	GLOBAL.TheSim:LoadPrefabDefs( MODROOT.."prefabs.xml" )

	--Tell the game to load our new prefab
	GLOBAL.LoadPrefabFile("prefabs\\healthpotion.lua")

	local function modGamePostInit()

	--Define a variable to store the path to our images (for convenience)
	local imgpath = MODROOT.."inventoryimages\\"

		--Create a new recipe for marble pillar prefab so user can build it (remember that hammer component will automatically drop a portion of these items)
		GLOBAL.Recipe( "healthpotion", { Ingredient("red_cap", 3), Ingredient("spidergland", 1), Ingredient("petals", 4) }, RECIPETABS.MAGIC, 3, nil, nil, imgpath)
end

AddGamePostInit(modGamePostInit)

print("done!")
